<?php
    $auth = Zend_Auth::getInstance();        
    $auth->setStorage(new Zend_Auth_Storage_Session(SESSION_NAMESPACE));            
?>
<div class="row">
	<div class="col-sm-4">
		<div class="logo pull-left">
			<a href="/default"><img src="/static/default/images/home/logo.png" alt="" /></a>
		</div>						
	</div>
	<div class="col-sm-8">
		<div class="shop-menu pull-right">
			<ul class="nav navbar-nav">				
				<li><a href="#"><i class="fa fa-star"></i> Wishlist</a></li>
				<li><a href="checkout.html"><i class="fa fa-crosshairs"></i> Checkout</a></li>
				<li><a href="cart.html"><i class="fa fa-shopping-cart"></i> Cart</a></li>
            <?php
                if(!$auth->hasIdentity()){
                    echo "<li><a href='/default/auth'><i class='fa fa-lock'></i> Login / Register</a></li>";                                    
                }else{
                    $auth=$auth->getIdentity();                                                            
            ?>
                    <li><a href="#"><i class="fa fa-user"></i> <?=$auth['fullName']?></a></li>                
                    <li><a href="/default/auth/logout"><i class="fa fa-sign-out"></i> Logout</a></li>
            <?php
                } 
            ?>
				
    
			</ul>
		</div>
	</div>
</div>